package cn.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**GET请求 通过查询参数传递数据
 * http://localhost:8080/v1/user/login?username=admin&password=123456
 */
@Controller
public class UserController {
    @RequestMapping("/v1/user/login")
    @ResponseBody
    public String login(String username,String password){
        return "恭喜你 登陆成功"+username+"-------"+password;
    }
}
